﻿#ifndef COMPANY_H
#define COMPANY_H

#include <QString>
#include <memory>

using namespace std;

class Company
{
protected:
    QString m_name;
public:
    Company(QString name);
    virtual void Add(const shared_ptr<Company>& c) = 0;     //增加
    virtual void Remove(const shared_ptr<Company>& c) = 0;  //移除
    virtual void Display(int depth) = 0;                    //显示
    virtual void LineOfDuty() = 0;                          //履行职责
    virtual ~Company() {}
};

#endif // COMPANY_H
